<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title><s:message code="M_3730_TOOL_PM_PLAN_QUERY_TAG" /></title>
    <%@ include file="/page/comPage/comCSS.html"%>
    <%@ include file="/page/comPage/navbar.html"%>
	<style type="text/css">
		.highCss{
			color: red;
			font-weight: bold;
		}
		.centerCss{
			text-align:center;
		}
		#selDiv{
			padding-top: 5px;
			width:99%;
		}
		#rightContentDiv{
			padding-top: 5px;
		}
	</style>
</head>
<body>
	<div class="container-fluid">
	    <div class="col-sm-4 btnDivCss">
	        <button class="btn btn-info" id="query_btn">
	            <s:message code="QUERY_TAG" />
	        </button>
	    </div>
		<div class="col-sm-8">
			<table class="tigger2" style="vertical-align:middle;margin-top:15px">
				<tr>
					<td style="width:60px;background-color:white" class="explain">保养状态</td>
					<td style="background-color:#F2F20C;width:60px;font-size:14;font-weight:bold;vertical-align:middle;text-align:center">待保养</td>
					<td style="background-color:#27E527;width:60px;font-size:14;font-weight:bold;vertical-align:middle;text-align:center">保养完成</td>
					<td style="background-color:#E74C3C;width:60px;color:white;font-size:14;font-weight:bold;vertical-align:middle;text-align:center">到期未保养</td>
					<td style="background-color:#0000CD;width:60px;color:white;font-size:14;font-weight:bold;vertical-align:middle;text-align:center">保养中</td>
				</tr>
			</table>
		</div>
	    <div class="col-sm-12" id="leftDiv">
			<form id="orderList" class="form-horizontal">
	            <fieldset>
	                <legend><s:message code="QUERY_CONDITION_TAG" /></legend>
	            </fieldset>
	            <div class="form-group col-sm-3">
	                <label class="control-label col-sm-4" for="bayIdSel"><s:message code="LINE_ID_TAG"/></label>
	                <div class="col-sm-8">
	                    <select class="form-control" id="bayIdSel"></select>
	                </div>
	            </div>
	            <div class="form-group col-sm-3">
	                <label class="control-label col-sm-4" for="opeIdSel"><s:message code="OPE_ID_TAG"/></label>
	                <div class="col-sm-8">
	                    <select class="form-control" id="opeIdSel"></select>
	                </div>
	            </div>
	            <div class="form-group col-sm-3">
	                <label class="control-label col-sm-4" for="toolIdSel"><s:message code="TOOL_ID_TAG"/></label>
	                <div class="col-sm-8">
	                    <select class="form-control" id="toolIdSel"></select>
	                </div>
	            </div>
				<div class="form-group col-sm-3">
					<label class="control-label col-sm-4" for="shiftId">班别</label>
					<div class="col-sm-8">
						<select class="form-control" id="shiftId"></select>
					</div>
				</div>
	        </form>
		</div>
		<div class="col-sm-12" id="rightContentDiv">
		    <fieldset>
                <legend><s:message code="PM_PLAN_QUERY_TAG" /></legend>
            </fieldset>
			<div id="calendar"></div>
		</div>
	</div>
	<!-- 保养变更 Dialog -->
	<div id="PMChangeDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h3 class="modal-title">
						<button id="PMChangeDialog_saveBtn" class="btn btn-success"><s:message code="SAVE_TAG"/></button>
						<span id="PMChangeDialog_titleTxt" class="help-inline"></span>
						<span id="PMChangeDialog_toolIdTxt" class="highCss help-inline"></span>
                       </h3>
				</div>
				<!--Modal header-->
				<div class="modal-body">
					<div id="PMChangeDialog_dataCateForm">
						<div id="radioDiv" class="form-group row">
							<div class="centerCss col-md-6">
								<input id="PMChangeDialog_currentRadio" name="changeTyp" value="C" type="radio"/><span>更新本次</span>
							</div>
							<div class="centerCss col-md-6">
								<input id="PMChangeDialog_allRadio" name="changeTyp" value="A" type="radio"/><span>更新全部</span>
							</div>
						</div>

						<div class="form-group row">
	                        <div class="centerCss col-md-6">
	                        	<label class="control-label keyCss" for="PMChangeDialog_pmTypeSelect">保养类型</label>
	                            <select id="PMChangeDialog_pmTypeSelect" class="form-control"></select>
	                        </div>
							<div class="centerCss col-md-6">
								<label id="PMChangeDialog_plnStbDateLabel" class="control-label keyCss" for="PMChangeDialog_plnStbDateTxt">本次计划保养日期</label>
								<input id="PMChangeDialog_plnStbDateTxt" type="text" class="form-control" readonly/>
							</div>
                   		</div>
						<div class="form-group">
							<div id="PMChangeDialog_pmItemListDiv">	
								<table id="PMChangeDialog_pmItemListGrd"></table>
							    <div id="PMChangeDialog_pmItemListPg"></div>
							</div>         	
						</div>
					</div>
					<span id="PMChangeDialog_evtSeqIdTxt" style="display:none"></span>
				</div>
			</div>
		</div>
	</div>
	<%@ include file="/page/comPage/comJS.html"%>
	<script src="js/page/3000/3730.js?v=2016110801"></script>
</body>
</html>